package org.example.config.sequence.configs.beans;

import org.example.config.sequence.configs.definition.MyImportSelector;
import org.example.config.sequence.inspect.Inspector;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 通过{@link Component @Component},{@link Bean @Bean}等注解声明方式加载，也可通过注册{@link BeanDefinition}方式加载
 * <p>
 * 本示例中通过{@link MyImportSelector}中中{@code selectImports}方法注册{@link BeanDefinition}方式加载
 */
public class MyImportSelectorBean {
    public MyImportSelectorBean() {
        Inspector.constructor(MyImportSelectorBean.class);
    }
}
